home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 14965 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1010 b   |  41 lines

  1. Path: news.cac.psu.edu!usenet
  2. From: "Jason A. Soloff" <jas251@psu.edu>
  3. Newsgroups: comp.lang.c++,comp.lang.c
  4. Subject: compiling problem under g++
  5. Date: Tue, 02 Apr 1996 16:57:39 -0500
  6. Organization: Penn State University
  7. Message-ID: <3161A2D3.7D84@psu.edu>
  8. NNTP-Posting-Host: nb10ppp238.cac.psu.edu
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.0GoldB1 (Win95; I)
  13.  
  14. Hi all...
  15.  
  16. Minor problem here... I have been coding in C++ for years on the Dos/win 
  17. platforms, and am running into (what has to be) a simple, but annoying 
  18. problem...
  19.  
  20. this is the code:
  21.  
  22. #include <math.h>
  23. int main(void)
  24. {
  25.   printf("%f\n",sqrt(25));
  26.   return 0;
  27. }
  28.  
  29. OK... thats it... nice and simple huh?  Nope.
  30. Won't compile on two unix systems I am trying to work with...
  31. SunOS 4.1.3_U1, with g++ 2.4  It can't seem to find the
  32. sqrt code from the library?  Am I missing something?  is the
  33. library called something else under UNIX?
  34.  
  35. Thanks,
  36.  
  37. Jason Soloff
  38. Penn State University
  39.  
  40.  
  41.